package com.youqingkuang.ipmsg.ipmsg;

import java.net.SocketAddress;

public class Member {
    public String nickname = null;
    public String name = null;
    public String hostname = null;
    public String groupname = null;
    public SocketAddress ip = null;
    public boolean absence = false;

    public boolean equals(Object member) {
        if (member == null) {
            return false;
        } else if (member instanceof Member) {
            return ip.equals(((Member)member).ip);
        } else {
            return false;
        }
    }

}
